package com.dunke.core.data.admin;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 用户注册
 */
@Data
public class AdminRegister implements Serializable {

    private static final long serialVersionUID = 391098905707489936L;

    /**
     * 电话号码
     */
    @NotNull(message = "用户账号不能为空")
    private String account;

    /**
     * 密码
     */
    @NotNull(message = "用户密码不能为空")
    @Size(min = 6, max = 16, message = "密码长度必须是6-16个字符")
    private String password;

    /**
     * 验证码；未接入短信平台时不使用
     */
    private String code;

}
